class SessionController < ApplicationController

  def index
  end

  def new
    @session = Session.new
  end

  def create
    @session = Session.new(params[:session])
    
    if @session.save
      APPLOG.info 'Session [' + @session.id.to_s + '] was saved'
      flash[:notice] = 'Session successfully added to the system'
      redirect_to :action => 'list'
    else
      flash[:notice] = 'Session unsuccessfully added to the system'
      render :action => 'new'
    end
  end

  def edit
  end

  def update
  end

  def delete
  end

  def list
  end

  def show
  end
end
